#$Id: PKGBUILD 61982 2012-01-12 19:40:23Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=vim-vcscommand
pkgver=1.99.46
_scriptid=17031
pkgrel=2
pkgdesc="vim cvs/svn integration plugin"
arch=('any')
url="http://www.vim.org/scripts/script.php?script_id=90"
license=('MIT')
depends=('vim>=7.0')
groups=('vim-plugins')
replaces=('vim-vsccommand') #whoops, typo before
install=vimdoc.install
source=(vcscommand.zip::http://www.vim.org/scripts/download_script.php?src_id=$_scriptid
        license.txt)
md5sums=('6161a4fb4f08e2bc00d8727ce27ad519'
         'cc76e422214169f380e6a1548f617778')

build() {
	/bin/true
}

package() {
	cd ${srcdir}

	installpath="${pkgdir}/usr/share/vim/vimfiles"
	mkdir -p $installpath
	cp -r doc plugin syntax $installpath

	#just in case....
	find "$installpath" -type f -exec chmod 644 {} \;

	install -D -m644 license.txt \
	   ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
